import {NgModule} from '@angular/core';
import {Routes, RouterModule} from '@angular/router';
import {CommunityComponent} from './community.component';
import {CircleComponent} from './circle-detail/circle-detail.component';
import {AllCircleComponent} from "./all-circle/all-circle.component";
import {MyCircleComponent} from "./my-circle/my-circle.component";

const routes: Routes = [
  {
    path: '',
    component: CommunityComponent,
    data: {
      meta: {
        title: '求苗体育社区_体育运动爱好者交流圈',
        keywords: '运动社区,篮球社区,足球社区,体育社区,论坛,体育圈',
        description: `求苗社区以篮球,足球,NBA,网球,羽毛球,电竞娱乐,跑步等体育运动话题为主，
        为拥有热情的体育爱好者们创造良好讨论氛围，提供个性化功能，加入兴趣圈子，参与社区讨论`,
      },
    }
  },
  {
    path: 'circle/mine',
    component: MyCircleComponent,
  },
  {
    path: 'circle/all',
    component: AllCircleComponent,
  },
  {
    path: 'circle/:circleId',
    component: CircleComponent,
  }

];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class CommunityRoutingModule {
}
